package mk.timska_rabota_android.messages;

public class Message {
	private String body;
	private String recipient;
	private Double longitute;
	private Double latitude;
	private Double elevation;
	private Integer id;
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getRecipient() {
		return recipient;
	}
	public void setRecipient(String recipient) {
		this.recipient = recipient;
	}
	public Double getLongitute() {
		return longitute;
	}
	public void setLongitute(Double longitute) {
		this.longitute = longitute;
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	public Double getElevation() {
		return elevation;
	}
	public void setElevation(Double elevation) {
		this.elevation = elevation;
	}
	
	public Message(){
		body = "Test";
		recipient = "Me";
		longitute = 42.555;
		latitude = 44.777;
		elevation = 1500.0;
	}
	
	public Message(Integer id,String body, String recipient, double lon, double lat, double ele){
		this.body = body;
		this.recipient = recipient;
		this.longitute = lon;
		this.latitude = lat;
		this.elevation = ele;
		this.id = id;
	}
	
	public String toString(){
		StringBuilder a = new StringBuilder();
		a.append(body);
		
		return a.toString();
	}
	
}
